Create Fixed Deposit
POST /fixed-deposit
Description
Creates a new fixed deposit account for a user. This endpoint requires authentication headers and a request body with the details of the fixed deposit.
Headers:
| Name | Type | Description |
|---|---|---|
tenantId | string | The unique identifier for the tenant (required). |
countryCode | string | The country code (required). |
userId | string | The unique identifier for the user (required). |
Request Body:
| Name | Type | Description |
|---|---|---|
requestId | string | A unique identifier for the request. |
title | string | The title of the fixed deposit account. |
productId | integer | The ID of the fixed deposit product. |
depositAmount | integer | The amount to deposit in the fixed deposit account. |
rollOver | boolean | Indicates whether the deposit should be rolled over. |
sourceAccountId | string | The ID of the source account for the deposit. |
rolloverType | string | The type of rollover. Example: CAPITAL_PROFIT_ROLLOVER. |
Example Request Body:
{
"requestId": "string",
"title": "string",
"productId": 0,
"depositAmount": 0,
"rollOver": true,
"sourceAccountId": "string",
"rolloverType": "CAPITAL_PROFIT_ROLLOVER"
}'
Sample Response: 200
{
"status": true,
"statusCode": 0,
"message": "string",
"data": {},
"errors": [
{
"message": "string",
"data": {},
"descriptiveMessage": "string"
}
]
}
LANGUAGE
CURL REQUEST
curl --request POST \
--url /fixed-deposit \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!